<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li>
                    <a href="#"  onclick="loadDiv('mainCenterDiv','${ctx}/drug/drugAdjust/index')">采购计划调整列表</a>
                </li>
                <li class="active">
                    <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/drug/drugAdjust/form')">
                        <c:choose>
                            <c:when test="${drugBuyPlan.id==''|| drugBuyPlan.id==null}">
                                采购计划调整列表
                            </c:when>
                            <c:otherwise>采购计划调整</c:otherwise>
                        </c:choose>
                    </a>
                </li>
            </ul>
            <section class="panel panel-default">
                <div class="panel-body" style="padding: 0">
                    <div class="col-lg-12" style="padding: 0">
                        <form:form id="inputForm" data-parsley-validate="" modelAttribute="drugBuyPlan" onsubmit="return formSaveLoad('mainCenterDiv','inputForm','${ctx}/drug/drugAdjust/save','${ctx}/drug/drugAdjust/index');" method="post" class="form-horizontal">
                            <form:hidden path="id"/>
                            <div class="container-fluid" style="background-color: #fafafc;margin: 0;padding:0;padding-top:15px ">
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">采购单据号：</label>
                                    <div class="col-sm-6">
                                        <form:select data-parsley-required="" path="" id="drugCode" htmlEscape="false" class="form-control"  maxlength="20">
                                            <form:option value="" label="">1111</form:option>
                                            <%--<c:forEach items="${list}" var="drugSupplierCata">--%>
                                                <%--<form:option value="${drugSupplierCata.supplierJc}"  itemLabel="label" itemValue="value" htmlEscape="false">--%>
                                                    <%--${drugSupplierCata.supplierJc}--%>
                                                <%--</form:option>--%>
                                            <%--</c:forEach>--%>
                                        </form:select>
                                    </div>
                                </div>
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">批量设置：</label>
                                    <div class="col-sm-6">
                                        <form:select data-parsley-required="" path="" htmlEscape="false" class="form-control"  maxlength="100">
                                            <form:option value="" label="">2222</form:option>
                                            <%--<c:forEach items="${page.list}" var="drugInfo">--%>
                                                <%--<form:option value="${drugInfo.drugDict.drugName}"  itemLabel="label" itemValue="value" htmlEscape="false">--%>
                                                    <%--${drugInfo.drugDict.drugName}--%>
                                                <%--</form:option>--%>
                                            <%--</c:forEach>--%>
                                        </form:select>
                                    </div>
                                </div>
                            </div>
                                <div class="form-group col-sm-6" style="margin-top: 10px">
                                    <label class="col-sm-3 control-label">采购序号：</label>
                                    <div class="col-sm-6">
                                        <form:input path="purchaseOrder" htmlEscape="false" class="form-control"  maxlength="32" />
                                    </div>
                                </div>
                                <div class="form-group col-sm-6" style="margin-top: 10px">
                                    <label class="col-sm-3 control-label">采购单号：</label>
                                    <div class="col-sm-6">
                                        <form:input path="purchaseNumber" htmlEscape="false" class="form-control"  maxlength="32" />
                                    </div>
                                </div>
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">药品编码：</label>
                                    <div class="col-sm-6">
                                        <form:input path="drugCode" htmlEscape="false" class="form-control"  maxlength="32" />
                                    </div>
                                </div>
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">药品名称：</label>
                                    <div class="col-sm-6">
                                        <form:input path="drugName" htmlEscape="false" class="form-control"  maxlength="100" />
                                    </div>
                                </div>
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">生产厂商：</label>
                                    <div class="col-sm-6">
                                        <form:input path="vedorName" htmlEscape="false" class="form-control"  maxlength="40" />
                                    <%--<form:select data-parsley-required="" path="vedorName" htmlEscape="false" class="form-control"  maxlength="100">--%>
                                            <%--<form:option value="" label="">1</form:option>--%>
                                            <%--<c:forEach items="${list}" var="drugSupplierCata">--%>
                                                <%--<form:option value="${drugSupplierCata.supplierJc}"  itemLabel="label" itemValue="value" htmlEscape="false">--%>
                                                    <%--${drugSupplierCata.supplierJc}--%>
                                                <%--</form:option>--%>
                                            <%--</c:forEach>--%>
                                        <%--</form:select>--%>
                                    </div>
                                </div>
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">采购供应商：</label>
                                    <div class="col-sm-6">
                                        <form:input path="supplierName" htmlEscape="false" class="form-control"  maxlength="40" />
                                    </div>
                                </div>
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">规格：</label>
                                    <div class="col-sm-6">
                                        <form:input path="packageSpec" htmlEscape="false" class="form-control"  maxlength="20" />
                                    </div>
                                </div>
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">单位：</label>
                                    <div class="col-sm-6">
                                        <form:input path="packageUnit" htmlEscape="false" class="form-control"  maxlength="8" />
                                    </div>
                                </div>
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">进货价：</label>
                                    <div class="col-sm-6">
                                        <form:input path="costPrice" htmlEscape="false" class="form-control"  />
                                    </div>
                                </div>
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">计划数量：</label>
                                    <div class="col-sm-6">
                                        <form:input path="plannedSelling"  htmlEscape="false" class="form-control"  maxlength="11" />
                                    </div>
                                </div>
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">计划金额：</label>
                                    <div class="col-sm-6">
                                        <form:input path="plannedAmount" htmlEscape="false" class="form-control"  />
                                    </div>
                                </div>
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">仓管员：</label>
                                    <div class="col-sm-6">
                                        <form:input path="warehouseKeeper" htmlEscape="false" class="form-control"  maxlength="20" />
                                    </div>
                                </div>
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">采购数量：</label>
                                    <div class="col-sm-6">
                                        <form:input path="purchaseSelling" data-parsley-required="true" htmlEscape="false" class="form-control"  maxlength="11" />
                                    </div>
                                </div>
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">采购金额：</label>
                                    <div class="col-sm-6">
                                        <form:input path="purchaseAmount" htmlEscape="false" class="form-control"  />
                                    </div>
                                </div>
                                <div class="form-group col-sm-6">
                                    <label class="col-sm-3 control-label">采购员：</label>
                                    <div class="col-sm-6">
                                        <form:input path="buyer" htmlEscape="false" class="form-control"  maxlength="20" />
                                    </div>
                                </div>
                            <div class="form-group col-sm-6">
                                <label class="col-sm-3 control-label">剂型：</label>
                                <div class="col-sm-6">
                                    <form:input path="drugForm" htmlEscape="false" class="form-control"  maxlength="20" />
                                </div>
                            </div>
                                <div class="form-group col-sm-6">
                                    <div class="col-sm-offset-3 col-sm-10">
                                        <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存">&nbsp;
                                        <input id="btnCancel" class="btn" type="button" value="返 回" onclick="loadDiv('mainCenterDiv','${ctx}/drug/drugAdjust/index')">
                                </div>
                            </div>
                        </form:form>
                    </div>

                </div>
            </section>
        </div>
    </div>